﻿using Blog.Core.Domain.Model;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Blog.Core.Domain.Dictionary
{
    /// <summary>
    /// 字典数据表
    /// </summary>
    [Table("DictData")]
    public class DictData:Audit
    {
        /// <summary>
        /// 主键编码
        /// </summary>
        [Key]
        public int Dict_code { get; set; }
        /// <summary>
        /// 字典排序
        /// </summary>
        public int Dict_sort { get; set; }
        /// <summary>
        /// 字典标签
        /// </summary>
        public string Dict_label { get; set; }
        /// <summary>
        /// 字典键值
        /// </summary>
        public string Dict_value { get; set; }
        /// <summary>
        /// 字典类型
        /// </summary>
        public int Dict_type { get; set; }
        /// <summary>
        /// 样式属性（其他样式扩展）
        /// </summary>
        public string? Dict_class { get; set; }
        /// <summary>
        /// 表格回显样式
        /// </summary>
        public string? List_class { get; set; }
        /// <summary>
        /// 是否默认（0是 1否）
        /// </summary>
        public int Is_default { get; set; } =0;
        /// <summary>
        /// 状态
        /// </summary>
        public int Status { get; set; } = 0;
    }
}
